#!/bin/bash
if [ $1 = "cache" ]; then
echo "the number of processors are:"
grep processor /proc/cpuinfo | wc -l
elif [ $1 = "speed" ]; then
grep speed /proc/cpuinfo | wc -l
fi
